package cn.ulc.store.dao.template;

import cn.ulc.common.constant.enums.AvailableStatus;
import cn.ulc.store.dao.BaseDao;
import cn.ulc.store.entity.template.TemplateBanner;
import org.beetl.sql.core.annotatoin.SqlResource;

import java.util.List;

/*
* TemplateBanner
* gen by Jin mapper 2019-06-04
*/
@SqlResource("template.templateBanner")
public interface TemplateBannerDao extends BaseDao<TemplateBanner> {

  List<TemplateBanner> findByCompanyAndStatus(Long companyId, AvailableStatus status);

  List<TemplateBanner> findByTemplate(Long templateId);
}
